<%= render :partial => 'messages' %>

<% unless @image.nil? %>
<%= error_messages_for 'image' %>
<% end %>